Replace toAscii with toLatin in garmin.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 1 Jan 2014 19:22:08 +0000 (19:22 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 1 Jan 2014 19:22:08 +0000 (19:22 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4699 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/garmin.cc

index a0d81268b1f058e478a11031812c64a37db82cbc..111e4cd20ddc9d464792648f21da37832595d37e 100644 (file)
@@ -1087,13 +1087,13 @@ route_waypt_pr(const waypoint* wpt)
   // enforce that here, since jeeps doesn't.
   //
   // This was strncpy(rte->ident, wpt->shortname, sizeof(rte->ident));
-  char* s, *d;
+  char* d;
   d = rte->ident;
 #if NEW_STRINGS
   for (int idx = 0; idx < wpt->shortname.length(); idx++) {
-    int c = wpt->shortname[idx].toAscii();
+    int c = wpt->shortname[idx].toLatin1();
 #else
-  for (s = wpt->shortname; *s; s++) {
+  for (char* s = wpt->shortname; *s; s++) {
     int c = *s;
 #endif
     if (receiver_must_upper && isalpha(c)) {